package com.yao.filter;

import javax.servlet.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * Copyright (C), 2022-2023, 姚兵
 * Author: 32210
 * Date: 2023/2/16 15:40
 * FileName: HttpFilter
 * Description:
 */
public abstract class HttpFilter implements Filter {
    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        this.doFilter((HttpServletRequest) servletRequest,(HttpServletResponse) servletResponse,filterChain);
    }

    public abstract void doFilter(HttpServletRequest request, HttpServletResponse response,FilterChain filterChain) throws ServletException, IOException;
}
